<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="orest.back.membermanage.RegisterUserHandler"%>
<%@page import="net.ssta.core.db.RecordSet"%>
<%@page import="net.ssta.core.db.Record"%>
<%@page import="net.ssta.core.web.HTMLGenerator"%>
<%@page import="orest.back.membermanage.RegisterUserHandler"%>
<%@page import="net.ssta.common.LoginUser"%>


<%
	String path = request.getContextPath();
	String userId=LoginUser.getUserId();
	String fkType=request.getParameter("FKTYPE");    
%>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <META http-equiv=Content-Type content="text/html; charset=utf-8" />
    <META http-equiv=x-ua-compatible content=ie=7 />
    <META content="MSHTML 6.00.6000.17107" name=GENERATOR />
    <link href="<%=path%>/common/css/layout.css" rel="stylesheet" type="text/css" />
	<link href="<%=path%>/common/css/user.css" rel="stylesheet" type="text/css" />
       <script type="text/javascript" src="<%=path%>/includes/styleBase/js/jquery.js"></script>
    <script type="text/javascript" src="<%=path %>/includes/Fvalidate/Fvalidate.js" ></script>
	<link type="text/css" rel="stylesheet" href="<%=path %>/includes/Fvalidate/style.css" />
 
<title>用户升级</title>
 
 <script>
 function checkForm(){
   if(!$("#search").Fvalidate()){
    return false;
  }
  var n=$("textarea#user_MARK").text();
  var a=n.length;
  if(a>500){
     alert("说明文字不得超过500字");
     return false;
  }
 
   document.userFrom.submit();
   return true;
}   
 
 
$(document).ready(function()
{
	$("#search").Fvalidate({live:true});
	
});

 </script>
</head>
<body>

<%@include file="../../common/toplogin.jsp"%>    
<%@include file="../../common/topbanner.jsp"%> 
<%@include file="../../common/topmenu.jsp"%> 



<div id="contentmain">
 
<%@include file="../include/baseConfig.jsp"%> 



 <div id="content_right">
       <jsp:include   page="../include/baseTop.jsp"    flush="true">   
		      <jsp:param    name="open"    value="1"    />   
		</jsp:include>
 <form id="search" action="<%=path %>/back/userManager?method=applyUpgrade"  name="userFrom" method="post">
		<input type="hidden"   style="width:120px;" class="textInput" value="<%=userId %>" name="user_USERID"/>
		<input type="hidden"    style="width:120px;" class="textInput" value="<%=fkType %>" name="user_FKTYPE"/>
  
	<%if("0".equals(fkType)){ %>
		
		 
		  <table cellpadding="0" align="center" cellspacing="0" width="80%" border="0"   >
		     <tr>
		      <td width="40%" align="right" height="35" ><span class="bluetitle">当前用户名：</span>&nbsp;</td>
		      <td  align="left" >
				<input type="text"  maxlength="20"  style="width:120px;" class="inputtext1" value="<%=LoginUser.getLoginName() %>" readonly/>
			  </td>
		    </tr>
		    <tr >
		      <td align="right" height="35" ><span class="bluetitle">请输入您申请机构的名称：</span>&nbsp;</td>
		      <td align="left">
			  	<input type="text"  maxlength="100" style="width:210px;" class="textInput"  required  label="机构名称" name="user_APPLYNAME"/>
			  </td>	
		    </tr>
		     <tr >
		      <td  align="right" height="35"><span class="bluetitle">请输入简短说明：</span>&nbsp;</td>
		      <td  align="left" >
			  	 <textarea rows="5" cols="40" name="user_MARK" style="overflow:auto;" maxlength="10" id="user_MARK"></textarea>
			  </td>	
		    </tr>
		  </table>
		 
<%}else{ %>
	
		<div class="multiEditPanel" style="border:0;padding:10px;width:90%;padding-left:20px;">
		   <table cellpadding="0" align="center" cellspacing="0" width="80%" border="0" class="ctable"  >
		     <tr>
		      <td width="40%">当前用户名：</td>
		      <td   align="left"  >
				<input type="text"  maxlength="20"  style="width:120px;" class="inputtext1" value="<%=LoginUser.getLoginName() %>" readonly/>
			  </td>
		    </tr>
		    <tr >
		      <td>请输入您的真实姓名：</td>
		      <td  align="left" >
			  	<input type="text"  maxlength="20" style="width:120px;" class="inputtext1"  required   label="真实姓名" name="user_APPLYNAME"/>
			  </td>	
		    </tr>
		     <tr >
		      <td>请输入简短说明：</td>
		      <td  align="left" >
			  	  <textarea rows="5" cols="40" name="user_MARK" style="overflow:auto;"  id="user_MARK" ></textarea>
			  </td>	
		    </tr>
		  </table>
		 
			 
<%} %>
 <br/>
  <center>  
       <img style="cursor:pointer;" src="<%=path %>/common/images/queding.gif" width="101" height="33" border="0" onclick="checkForm();"/>
			  </center>
			  
		</div>
		</form>
</div>
  </div>
 <%@include file="../../common/bottom.jsp"%>    
</body> 
</html>